<?php
class Admin_IndexController extends Zend_Controller_Action{
	public function indexAction(){
		$mail =  new Application_Model_DbTable_Mail();
		$result= $mail->countUnread();
		$this->view->title = 'Syllabus Admin Panel';
		$this->view->message = 'Welcome on the admin panel, you can chose options on the left to manage application\'s back end.';
		$this->view->mail = ((!$result->count)?'mail':'newmail');
	}
}